package finalproject.model.items;

import finalproject.model.player.Player;
import finalproject.view.StringManager;

/**
 * A class representing a cup of coffe, which the player can use to increase his energy level
 * @author Nicolas Bighetti
 *
 */
public class Coffee extends Item{

	/**
	 * The amount of energy a cup of coffee will restore
	 */
	private final static int COFFEE_REGENERATION = 10;
	
	/**
	 * The constructor of the coffee class
	 */
	public Coffee()
	{
		super(StringManager.getString("coffee"), StringManager.getString("coffeedescription"), 1, true, false, false);
	}
	
	@Override
	public void use(Player player) {
		// TODO Auto-generated method stub
		player.getEnergy().setEnergy(player.getEnergy().getEnergy()+COFFEE_REGENERATION);
		StringManager.outPut("drinking");
	}

}
